package com.laiketui.plugin.common.mapper;

import com.laiketui.plugin.common.domain.base.order.OrderDataModel;
import com.laiketui.plugin.common.domain.exception.LaiKeAPIException;
import com.laiketui.core.db.BaseMapper;
import org.apache.ibatis.annotations.Update;

import java.util.List;
import java.util.Map;

public interface OrderDataModelMapper extends BaseMapper<OrderDataModel> {

    @Update("update lkt_order_data set status=#{status} where id=#{id}")
    Integer updateStatus(int id, int status) throws LaiKeAPIException;


    List<Map<String, Object>> getVipOrder(Map<String, Object> map) throws LaiKeAPIException;


    Integer countVipOrder(Map<String, Object> map) throws LaiKeAPIException;
}